package com.lsz.flight_system.repository;

import com.lsz.flight_system.entity.UserMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface UserMessageRepository
        extends JpaRepository<UserMessage,Long> , JpaSpecificationExecutor<UserMessage> {
    UserMessage findUserMessageByUsername(String username);

    UserMessage findUserMessageByPhone(String phone);
}
